package com.example.myerp.service;

import com.mycloud.api.pojo.ExeorderDt;
import com.mycloud.api.pojo.Quality_control;
import com.mycloud.api.pojo.Quality_controlDt;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@SuppressWarnings("all")
@FeignClient("myerp-moudlec")
public interface QualityService {
    @RequestMapping("/moudlec/quality/selConRow")
    Integer selConRow(@RequestParam("orderId") Long orderId, @RequestParam("productId") Integer productId);

    @RequestMapping("/moudlec/quality/updaCargo")
    public void updaCargo(@RequestParam("orderId") Long orderId, @RequestParam("productId") Integer productId);

    @RequestMapping("/moudlec/quality/addQc")
    public void addQc(@RequestBody Quality_control quality_control);

    @RequestMapping("/moudlec/qualitydt/addQcDt")
    public void addQcDt(@RequestBody Quality_controlDt qt);

    @RequestMapping("/moudlec/exeorderdt/selExeorder")//moudlec/exeorderdt
    public List<ExeorderDt> selExeorder(@RequestParam("orderId")Long orderId, @RequestParam("productId")Integer productId,  @RequestParam("exeorderdtId")Long exeorderdtId);


    @RequestMapping("/moudlec/quality/selMaxId")
    public Long selMaxId(@RequestParam("orderId")Long orderId,  @RequestParam("productId")Integer productId);
}
